﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpringNETTester
{
    public class Messenger
    {
        public int NumberOfRepeats { get; set; }
        public ICommunicationMedium CommunicationMedium { get; set; }
        public String NameOfSender { get; set; }
        public String NameOfReceiver { get; set; }

        public void SendMessage(string message)
        {
            for (int msg_idx = 1; msg_idx <= NumberOfRepeats; msg_idx++)
            {
                CommunicationMedium.Send(message);
            }
        }
    }
}
